<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>我的凡客</title>
		<script type="text/javascript">
		var getCartDataUrl = "<?php echo U('getCartData');?>";
		var delCartUrl = "<?php echo U('Cart/del');?>";
		</script>
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/public.css"/>
		<script src="http://localhost/vshop/Template/default/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="http://localhost/vshop/Template/default/js/public.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/memberPublic.css"/>
		<link rel="stylesheet" type="text/css" href="http://localhost/vshop/Template/default/css/myList.css"/>
		<style type="text/css">
		.windent td{text-align: center;padding: 5px;}
		.windent td a{color: #000000;}
		.windent td a:hover{color: #A10000;}
		</style>
	</head>
	<body>
		<!-- 头部开始 -->
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!-- 头部开始 -->
		<div class="haad">
			<div class="haadTop">
				    <?php if(session('uid') && session('uname')){ ?>
					<div class="haadTopL">
						您好，<a href="<?php echo U('Member/index');?>" style="color: #A10000;"><?php echo $hd['session']['uname'];?></a>&nbsp;
						<span>欢迎光临凡客诚品！</span>&nbsp;
						<a href="<?php echo U('User/out');?>" style="color: #A10000;">退出登陆</a>
					</div>
				<?php }else{ ?>
					<div class="haadTopL">
						您好，<span>欢迎光临凡客诚品！</span>&nbsp;
						<span>
							<a href="<?php echo U('User/login');?>">登陆</a>&nbsp;|&nbsp;<a href="<?php echo U('User/register');?>">注册</a>
						</span>
					</div>
				<?php } ?>
				<div class="haadTopR">
					<ul>
						<li class="topMenuBox">
							<a href="<?php echo U('Member/index');?>" class="topMenu">我的凡客</a>
							<ul>
								<li><a href="<?php echo U('Order/index');?>">我的订单</a></li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<!--logo和搜索开始-->
		<div class="logoSearch">
			<div class="logoL">
				<a href="<?php echo U('Index/index');?>"></a>
			</div>
			<div class="searchR">
				<div class="searchFormBox">
					<form action="" method="post">
						<input type="text" id="keyword" value="搜“帆布鞋”，体验与众不同" /><input type="submit" id="searchSub" value="" />
					</form>
				</div>
				<div class="cartBox">
					<p><a href="#">购物车(<span>0</span>)</a></p>
					<div class="BuycarTab">
						<div id="noGoodsMsg" style="display: none;">您的购物车中没有商品</div>
						<div class="havepru">
							<h2>最近加入的商品：</h2>
							<ul>
								
							</ul>
							<div class="ShopCarPageLine"></div>
							<div class="ShopCarPage">
								<div>共计(未计算促销折扣)<span>￥0</span></div>
								<strong><a href="<?php echo U('Cart/index');?>">查看购物车(<span>0</span>件)</a></strong>
							</div>
						</div>
					</div>
				</div>
				<div class="hotWord">
					<p>热门搜索：<a href="#">吉国武</a>&nbsp;<a href="#">吉国武</a></p>
				</div>
			</div>
		</div>
		<!--logo和搜索结束-->
		<!--顶部导航开始-->
		<div class="navBox">
			<div class="allProduct">
				<span class="navCon notIndex">全部商品分类<em></em></span>
				<div class="categoryList">
					<div class="categpost">
						<?php foreach ($topCate as $tk=>$tv){?>
							<dl>
								<h3><a href="<?php echo U('List/index',array('cid'=>$tv['cid']));?>"><?php echo $tv['cname'];?></a></h3>
								<?php foreach ($cateData as $ck=>$cv){?>
									    <?php if($tv['cid']==$cv['pid']){ ?>
										<dt><a href="<?php echo U('List/index',array('cid'=>$cv['cid']));?>"><?php echo $cv['cname'];?></a></dt>
										<dd>
											<?php foreach ($cateData as $sk=>$sv){?>
												    <?php if($cv['cid']==$sv['pid']){ ?>
													<a href="<?php echo U('List/index',array('cid'=>$sv['cid']));?>"><?php echo $sv['cname'];?></a>
												<?php } ?>
											<?php }?>
										</dd>
									<?php } ?>
								<?php }?>
							</dl>
						<?php }?>
					</div>
				</div>
			</div>
			<div class="navListBox">
				<ul>
					<?php foreach ($topCate as $k=>$v){?>
						<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></li>
					<?php }?>
				</ul>
			</div>
		</div>
		<!--顶部导航结束-->
		<!-- 头部结束 -->
		<!-- 头部结束 -->
		<dl class="wrapper">
			<dl id="position">
				<dt>您当前的位置：<a href="<?php echo U('Index/index');?>">凡客首页</a></dt>
				<dd> &gt; <a href="<?php echo U('Member/index');?>">我的凡客</a></dd>
				<dd> &gt; <a href="javascript:;">我的订单</a></dd>
			</dl>
			<!--left menu start-->
			<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<div id="side-nav">
				<div class="my_vancl">
					<h2><a href="" class="track" name="my-left-left-commorder">我的凡客</a></h2>
				</div>
				<ul class="">
					<li><h3>订单中心</h3></li>
					<li class="no_bg"><a href="<?php echo U('Order/index');?>" class="track">·我的订单</a></li>
				</ul>
				<!-- <ul class="">
					<li><h3>客户服务</h3></li>
					<li><a href="" class="track">·我要评价</a></li>
					<li><a href="" class="track">·商品提问</a></li>
				</ul> -->
				<ul class="service-rate">
					<li><h3>账户管理</h3></li>
					<li><a href="" class="track">·账户余额</a></li>
					<li><a href="<?php echo U('Address/index');?>" class="track">·收货地址</a></li>
					<li><a href="<?php echo U('SaveCenter/index');?>" class="track">·账户安全</a></li>
					<li><a href="<?php echo U('SaveCenter/userInfo');?>" class="track">·我的资料</a></li>
				</ul>
			</div>
			<!--left menu end-->
			<div class="ordercontainer">
				<h3><span>我的订单</span></h3>
				<div class="wtitle">
					<div id="myTab" class="wtitle_l">
						<a href="<?php echo U('index');?>"     <?php if(!isset($_GET['ow'])){ ?>class="track wtitle_lNa"<?php }else{ ?>class="track"<?php } ?>>全部订单<span>(<?php echo $orderNum['total'];?>)</span></a>
						<a href="<?php echo U('index',array('ow'=>0));?>"     <?php if(isset($_GET['ow']) && $_GET['ow'] == 0){ ?>class="track wtitle_lNa"<?php }else{ ?>class="track"<?php } ?>>进行中<span>(<span><?php echo $orderNum['jx'];?></span>)</span></a>
						<a href="<?php echo U('index',array('ow'=>1));?>"     <?php if(isset($_GET['ow']) && $_GET['ow'] == 1){ ?>class="track wtitle_lNa"<?php }else{ ?>class="track"<?php } ?>>已完成<span>(<?php echo $orderNum['wc'];?>)</span></a>
						<a href="<?php echo U('index',array('ow'=>2));?>"     <?php if(isset($_GET['ow']) && $_GET['ow'] == 2){ ?>class="track wtitle_lNa"<?php }else{ ?>class="track"<?php } ?>>无效<span>(<span><?php echo $orderNum['wx'];?></span>)</span></a>
					</div>
					<div class="wtitle_r">
						<select style="display: inline-block;" id="posttime" name="posttime">
							<option selected="selected" value="2015-08-12,2015-09-10">30天内的订单</option>
							<option value="2015-01-01,2015-08-11">2015年的订单</option>
							<option value="2014-01-01,2014-12-31">2014年的订单</option>
							<option value="2013-01-01,2013-12-31">2013年的订单</option>
							<option value="2007-01-01,2012-12-31">更早的订单</option>
						</select>
					</div>
				</div>
				
				<div id="orderlist">
					<div class="orderinfo">
						<div class="windent">
							<table width="100%">
								<tr>
									<th>订单号</th>
									<th>价格总计</th>
									<th>提交时间</th>
									<th>订单状态</th>
									<th>操作</th>
								</tr>
								    <?php if(empty($orderData)){ ?>
									<tr>
										<td colspan="4"><p>暂无订单记录</p></td>
									</tr>
								<?php }else{ ?>
									<?php foreach ($orderData as $odk=>$odv){?>
										<tr>
											<td><a href="<?php echo U('OrderList/index',array('oid'=>$odv['oid']));?>"><?php echo $odv['onumber'];?></a></td>
											<td><?php echo $odv['ototal'];?></td>
											<td><?php echo $odv['time'];?></td>
											<td><?php echo $odv['status'];?></td>
											<td><a href="">查看</a>&nbsp;/&nbsp;<a href="">删除</a></td>
										</tr>
									<?php }?>
								<?php } ?>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div style="width: 100%;height: 20px;clear: both;"></div>
		<div class="copyRight">
			<div class="copyRightTab"><p>Copyright 2007 - 2014 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号</p></div>
		</div>
	</body>
</html>
